import request from '@/utils/request'

// 查询物种数据列表
export function listBasicInfo(query) {
  return request({
    url: 'service-ry/output/basicInfo/list',
    method: 'get',
    params: query
  })
}

// 查询物种数据详细
export function getBasicInfo(id) {
  return request({
    url: 'service-ry/output/basicInfo/' + id,
    method: 'get'
  })
}

// 新增物种数据
export function addBasicInfo(data) {
  return request({
    url: 'service-ry/output/basicInfo',
    method: 'post',
    data: data
  })
}

// 修改物种数据
export function updateBasicInfo(data) {
  return request({
    url: 'service-ry/output/basicInfo',
    method: 'put',
    data: data
  })
}

// 删除物种数据
export function delBasicInfo(id) {
  return request({
    url: 'service-ry/output/basicInfo/' + id,
    method: 'delete'
  })
}

// 导出物种数据
export function exportBasicInfo(query) {
  return request({
    url: 'service-ry/output/basicInfo/export',
    method: 'get',
    params: query
  })
}